# -*- coding:utf-8 -*-
"""
验证获得一个URL地址的扩展名。
"""
import re


def match_url(str0):
    u'''
    验证url的有效性
    '''
    str1 = re.split("[.]", str0)
    listt = ['php', 'html', 'asp', 'jsp']
    if str1[-1] in listt:
        return "TRUE"
    else:
        return "FAIL"


if __name__ == '__main__':
    str_input = 'hehe.php'
    print match_url(str_input)
